Skip to content

解锁公益捐赠预算

解锁公益捐赠预算 注:单个商户的接口频率限制为100次/s

请求参数类型描述
out_budget_nostring商户预算单号
jsonobject声明请求的JSON数据结构
sponsor_mchidstring出资商户号
activity_remarkstring解锁备注
php
$instance->v3->fundApp->mchTransfer->partner->charityBudget->_out_budget_no_->unlock->postAsync([
  'out_budget_no' => 'budget202506300102',
  'json' => [
    'sponsor_mchid'   => '1900001109',
    'activity_remark' => '公益活动结束,解锁资金',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/fund-app/mch-transfer/partner/charity-budget/{out_budget_no}/unlock')->postAsync([
  'out_budget_no' => 'budget202506300102',
  'json' => [
    'sponsor_mchid'   => '1900001109',
    'activity_remark' => '公益活动结束,解锁资金',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/fund-app/mch-transfer/partner/charity-budget/{out_budget_no}/unlock']->postAsync([
  'out_budget_no' => 'budget202506300102',
  'json' => [
    'sponsor_mchid'   => '1900001109',
    'activity_remark' => '公益活动结束,解锁资金',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->fundApp->mchTransfer->partner->charityBudget->_out_budget_no_->unlock->post([
  'out_budget_no' => 'budget202506300102',
  'json' => [
    'sponsor_mchid'   => '1900001109',
    'activity_remark' => '公益活动结束,解锁资金',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/fund-app/mch-transfer/partner/charity-budget/{out_budget_no}/unlock')->post([
  'out_budget_no' => 'budget202506300102',
  'json' => [
    'sponsor_mchid'   => '1900001109',
    'activity_remark' => '公益活动结束,解锁资金',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/fund-app/mch-transfer/partner/charity-budget/{out_budget_no}/unlock']->post([
  'out_budget_no' => 'budget202506300102',
  'json' => [
    'sponsor_mchid'   => '1900001109',
    'activity_remark' => '公益活动结束,解锁资金',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
sp_mchidstring服务商商户号
out_budget_nostring商户预算单号
budget_idstring微信支付预算单号
amountnumber预算总金额
sponsor_mchidstring出资商户号
activity_namestring活动名称
activity_remarkstring活动说明
statestring预算单状态
FINISHED 枚举值
unlock_remarkstring撤销说明
locked_timestring资金锁定时间
finished_timestring完成时间

参阅 官方文档

Published on the GitHub by TheNorthMemory